package com.hw.springcloud.service;

import com.hw.springcloud.entities.CommonResult;
import com.hw.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname: OrderService
 * @Description: 描述
 * @Date: 2021/12/17
 * @Author: HuWei
 */
@Component
@FeignClient(value = "cloudalibaba-nacos-provide-payment",fallback = OrderServiceImpl.class)
public interface OrderService {

    @GetMapping("/payment/getById/{id}")
    CommonResult<Payment> getById(@PathVariable("id") Long id);
}
